import { withInstall } from '@ibiz-template/vue3-util';
import { registerPanelItemProvider } from '@ibiz-template/runtime';
import { GridToolbar } from './grid-toolbar';
import { GridToolbarProvider } from './grid-toolbar.provider';

export const IBizGridToolbar = withInstall(GridToolbar, v => {
  v.component(GridToolbar.name!, GridToolbar);
  registerPanelItemProvider(
    'RAWITEM_GRID_TOOLBAR',
    () => new GridToolbarProvider(),
  );
});
